package ai.iyoga.service;

import ai.iyoga.been.Member;
import ai.iyoga.dao.MemberDao;

public class MemberService {

	public Member addMember(String name, String addr, String career) {
		Member mem = new Member();
		mem.setName(name);
		mem.setAddr(addr);
		mem.setCareer(career);
		
		MemberDao memberDao = new MemberDao();
		memberDao.addMembre(mem);
		
		return memberDao.findMemberByName(name);
	}
	
	public Member findMember(int memNo){
		MemberDao memberDao = new MemberDao();
		return memberDao.findMemberByNo(memNo);
	}

}
